<template>
  <div class="panel-colomn-wrapper">
    <div class="panel-item">
      <div class="top">
        <img :src="goodsInfo.cover" alt />
      </div>
      <div class="bottom">
        <p class="name">{{ goodsInfo.name}}</p>
        <p class="integral">{{goodsInfo.score}}积分</p>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    goodsInfo: {
      type: Object,
      default: () => ({})
    }
  }
}
</script>
<style lang="scss" scoped>
@import "@/styles/mixin.scss";
.panel-colomn-wrapper {
  .panel-item {
    width: 3.2rem;
    overflow: hidden;
    .top {
      width: 3.2rem;
      height: 3.2rem;
      img {
        height: 100%;
      }
    }
    .bottom {
      .name {
        font-size: 0.28rem;
        font-family: PingFang SC;
        font-weight: 400;
        color: rgba(0, 4, 0, 0.9);
        line-height: 0.4rem;
        width: 100%;
        @include ellipsisTwo();
        margin-top: 0.3rem;
      }
      .integral {
        font-size: 0.26rem;
        font-family: PingFang SC;
        font-weight: 500;
        color: rgba(153, 153, 153, 1);
        line-height: 0.32rem;
        margin-top: 0.2rem;
      }
    }
  }
}
</style>
